var dtGridColumns = [{
    id: 'identityNum',
    title: '身份证号码',
    type: 'string',
    columnClass: 'text-center',
    headerStyle: 'color:grey;',
    //hideType: 'xs|sm|md|lg'
}, {
    id: 'operation',
    title: '操作',
    type: 'string',
    columnClass: 'text-center tpl-table-black-operation',
    headerStyle: 'color:grey; white-space:nowrap; padding: 0px 60px;',
    resolution: function (value, record, column, grid, dataNo, columnNo) { //此处的值（value）不直接显示
        var content = '';
        content += '<a href="#" onclick="loadPage(\'personalInformationImg/' + record.id + '/select\');"> <i class="am-icon-pencil"></i>编辑</a> ';
        return content;
    }
}];

var dtGridOption = {
    lang: 'zh-cn',
    ajaxLoad: true,
    check: true,
    checkWidth: '37px',
    loadURL: 'personalInformationImg/list',
    columns: dtGridColumns,
    gridContainer: 'dtGridContainer',
    toolbarContainer: 'dtGridToolBarContainer',
    tools: '',
    pageSize: 10, //默认每页十条记录
    pageSizeLimit: [10, 20, 30] //分页选项：每页10、20\或者30条记录
};
var grid = $.fn.dlshouwen.grid.init(dtGridOption);
$(function () {
    grid.load();
    $('select').selected();
});

function search() {
    grid.parameters = new Object();
    grid.parameters['title'] = $("#title").val();
    grid.refresh(true);
}

function addUserImg(){
    grid.parameters = new Object();
    grid.parameters['identification'] = $("#identification").val();
    grid.refresh(true);
}
